home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Turnbull China Bikeride
/
Turnbull China Bikeride - Disc 1.iso
/
ARGONET
/
PD
/
FILER
/
RCOUNT102.SPK
/
!RealCount
/
!Help
< prev
next >
Wrap
Text File
|
1998-08-30
|
11KB
|
274 lines
==========================================
RealCount (1.02h) - Improved Desktop Count
========= (C) Sergio Monesi 1995 =========
==========================================
RealCount provides a desktop Count facility similar to the Filer but, unlike
Filer, shows the real disc space that the counted directory uses together
with a number of other useful statistics.
RealCount can be used as a stand-alone application alongside the standard
RISC OS Count or also as a complete Count replacement.
RealCount requires RISC OS 3.10 or later (it has been fully tested on Risc PC
600 and should work on Risc PC 700 and 'big' discs) and supports interactive
Help.
RealCount is FREEWARE. See 'Conditions of use' for more info.
Index
-----
- Introduction
- Using RealCount
- Customizing the display
- Disclaimer
- Bugs and Limitations
- History
- Credits
- Conditions of use
- Contacting the Author
Introduction
------------
The standard RISC OS Count window shows only the number of files and their
total length. This is good when counting single files but when counting
directories it could be more useful to know the real disc space used by the
directory, not only the total length of the files it contains.
In fact, on E-Format discs (ie floppies, hard discs and RAM disc but not
archives, for example) a directory uses a fixed space (2048 bytes) but
because of the organisation of the disc map it usually eats up some extra
space that can be used by small files stored in it.
Moreover, because of the sectors boundaries and disc map constraints, some
extra disc space is wasted at the end of the various files (eg on a disc with
512 bytes sectors, a 513 bytes file uses 1024 bytes of disc space).
RealCount has been designed to display all these informations so that you can
know exactly how much disc space your directories use. Moreover, RealCount is
much faster than the standard Count.
If you want to know more about the E-Format map structure you can read the
file 'MapExpl' included in the RealCount distribution archive.
Using RealCount
---------------
If RealCount has been configured to replace the standard Filer's Count (see
"Configuring RealCount") you can just ignore RealCount's existence and just
use the Filer: when you choose 'Count' from the Filer's menu you will get a
RealCount window instead of a standard Filer one.
Alternatively, to count a file or a directory just drag it to the RealCount
icon on the iconbar. To count a directory you can also drag the RealCount
icon from the iconbar to a Filer window (so that, for example, you can easily
count the whole content of a disc counting its root directory).
A window, very similar to the standard Filer Count, will be opened and the
count will proceed as expected. You can pause or abort it, make it run faster
or remove the window until the count is finished using the menu: it will
behave exactly like a standard Count window.
Once the count is finished the window can be enlarged (or is automatically
enlarged, see "Configuring RealCount") and the extra statistics revealed:
- Files: this shows the number of files and their total length, as shown by
the standard Count
- Directories: this shows the number of directories and the space they uses
(ie number of directories multiplied by 2048)
- Wasted sectors: this is the disc space wasted because of unused shared map
chunks. A detailed description of the reasons of this space is beyond the
scope of this file: it seems enough to say that this space is caused by the
organisation of the disc map and can be filled only by small files.
- Sectors rounding: this is the space wasted because of sectors boundaries
and disc map constraints. This space cannot be recovered.
- Total: this is the sum of the values above and is the total space used by
the counted directory.
Beside the values in bytes there are either the percentages or the sizes in
megabytes or kilobytes. Click on them to switch between these two displays.
RealCount also works on discs that are not E-Format and on Image files
although it will just perform like a common Count (but faster).
Configuring RealCount
---------------------
The iconbar menu includes an 'Options' submenu that allows to configure the
following features:
- Replace Filer: when selected the user Filer's Count will be replaced by
RealCount.
- Auto-enlarge window: when selected the RealCount window will be
automatically enlarged when the count operation is finished (so that the
various statistics are shown). When this is not selected, a RealCount
window will look exactly like a Filer's Count one except the fact that you
can enlarge it to see the extra statistics.
- Show percentages: when selected the RealCount window will show by default
the percentages of the statistics besides their size in bytes. Otherwise
the sizes in megabytes or kilobytes are displayed.
- Install iconbar: choose whether RealCount will install itself on the
iconbar or not.
When RealCount is not installed on the iconbar you can obtain the 'iconbar'
menu (thus the 'Options' menu) from every RealCount window using the 'Shift'
key (ie if 'Shift' is depressed while you try open the window's menu, the
iconbar menu will appear instead).
Note that you cannot unselect both 'Replace Filer' and 'Install iconbar',
otherwise there will be no way to access RealCount!
Selecting 'Replace Filer' and unselecting both 'Auto-enlarge window' and
'Install iconbar' will allow you to have a Filer's Count raplacement that
will just perform faster than the original one but will also provide extra
statistics if you enlarge the Count window after the end of the count
operation.
Customizing the display
-----------------------
In the current version the only way to configure the displayed icons is to
edit the "Messages" file inside the RealCont application. Try to load it into
an editor and read the instruction at the beginning of the file.
Another way to configure the display is to edit the window defined in the
"Templates" file using a template editor. You can change the size of the
window or move the icons as you like but remember not to change the icon
numbers!
Disclaimer
----------
In normal operations RealCount is not a dangerous program since it doesn't write
anything to the disc, it just reads it.
If for any reason (either your mistake or a bug in RealCount) it causes you a
loss of data, I am sorry for you but I WILL NOT BE HELD RESPONSIBLE.
Use RealCount at your own risk.
Bugs and Limitations
--------------------
If you drag the iconbar icon to a window whose title starts with a filename
(eg. an editor window), RealCount will count it. This is probably more a
feature than a bug, though! :-)
Most of the memory used by RealCount is allocated dynamically but a small
part isn't. This means that on RISC OS 3.10 there is a limit to the number of
window open at the same time: this limit can be enlarged by changing the
WimpSlot setting in the !Run file to a value larger than the current one.
Thanks to dynamic areas this limitation doesn't apply to RISC OS 3.50 or
later.
History
-------
1.00 -- 29 Jun 95
First fully working version. Released only to a few friends.
1.01 -- 19 Sep 95
Added Filer's Count replacement. RealCount should now work on big discs (ie
disc larger than 512Mb handled by the new FileCore module).
1.02a -- 17 Mar 96
The kilobytes or megabytes values are now shown with zero, one or two decimal
figures, depending on the size. More configurable variables added to the
"Messages" file.
1.02b -- 17 Nov 96
Fixed problems with discs larger than 2Gb (ie. LFAU larger than 8Kb).
1.02c -- 18 Jan 97
Fixed possible problem with StrongARM.
1.02d -- 05 Apr 97
The name of the directory to count is now processed so that it is now possible
to count directories with non-standard names, eg. System:Modules.
1.02e -- 11 May 97
Use unsigned integers in order to avoid silly negative numbers when the
amount of counted bytes exceeds 2Gb.
1.02f -- 22 Jul 97
Fixed some problems with image files.
1.02g -- 28 Feb 98
Fixed bug that caused a complete crash if two or more filer action operations
were nested (eg. dragging two or more files to the Memphis iconbar icon).
1.02h -- 25 Aug 98
RealCount now correctly handles premature death of the Filer Action task.
Credits
-------
I'd like to thank the following people who contibuted in some way to the
development of RealCount:
- Nick Craig-Wood who encouraged me to write this program since he said that
it was easy to replace the Filer's Count window... I followed his
suggestions and it seems to work fine! Thanks for part of the text in this
!Help file, too.
- Martin J Ebourne for his memory allocation functions and list management
functions.
- Jason Williams (and all the other collaborators) for DeskLib.
- Martin Wuerthner and Marko Lukat for their suggestions
- Mohsen Alshayef for testing fsck on a 5.1Gb disc.
Conditions of use
-----------------
RealCount (the Software) is Copyright (C) Sergio Monesi 1995 (the Author) and
may not be used or copied except as in accord with the terms and conditions
below.
You may NOT Make the Software available to any third party EXCEPT with these
terms and conditions imposed on said party.
You MUST make sure the Software is distributed whole, intact and unmodified,
including all the files in the original distribution.
You may NOT may not sell, hire or include the Software in a package which is
sold or hired, modify, translate, disassemble, decompile, reverse engineer,
or create derivative works based upon the Software or include whole or part
of the Software into other works.
The Software is supplied "as is", the Author make no warranty, express or
implied, as to the merchantability or its fitness for any particular purpose.
It may or may not perform in accordance with the documentation or your
expectations.
In no circumstances will the Author be liable for any damage, loss of data,
profits, goodwill or for any indirect or consequential loss arising out of
the use of the Software, or inability to use the Software, even if the
Author have been advised of the possibility of such loss.
These conditions supersede any prior agreement, oral or written, between you
and the Author relating to the Software.
You agree that except for written separate agreements between the Author and
you, this agreement is a complete and exclusive statement of the rights and
liabilities of the parties.
You acknowledge that you have read this agreement, that you understand this
agreement, and by loading, running or copying the Software you agree to be
bound by this agreement's terms and conditions.
Contacting the Author
---------------------
Post: Sergio Monesi
Via Trento e Trieste 30
20046 Biassono (MI)
Italy
EMail: msergio@tin.it
pel0015@cdc8g5.cdc.polimi.it
sergio@freebsd.first.gmd.de
WWW: http://bounce.to/sergio/
(bouncing to http://www.alphawave.ltd.uk/sergio/ at the time of writing)